﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Dynamic.Core;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Services;
using WMS.TakenoffService.Dto;

namespace WMS.TakenoffService
{
    public interface ITakenoffService:IApplicationService
    {
        /// <summary>
        /// 获取下架数据
        /// </summary>
        /// <param name="productCode"></param>
        /// <param name="productName"></param>
        /// <param name="index"></param>
        /// <param name="limit"></param>
        /// <returns></returns>
        Task<PagedResult> GetTakensdata(string? productCode, string? productName, int index = 1, int limit = 10);

        /// <summary>
        /// 删除下架信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
         Task<int> DeleteTakens(int id);

        /// <summary>
        /// 添加客户信息
        /// </summary>
        /// <param name="addTakenoffdto"></param>
        /// <returns></returns>
         Task<int> AddTakenoffs(AddTakenoffdto addTakenoffdto);

        /// <summary>
        /// 通过id获取下架信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
          Task<SearchTakendto> SelectByidTaken(int id);

        /// <summary>
        /// 修改下架信息
        /// </summary>
        /// <param name="searchTakendto"></param>
        /// <returns></returns>
          Task<int> UpdateTakens(SearchTakendto searchTakendto);
    }
}
